package cn.s1995.sloth.bizs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.s1995.sloth.bizs.entity.ProdEvaluate;
import cn.s1995.sloth.bizs.oo.req.OrderEvaluateREQ;
import cn.s1995.sloth.bizs.oo.req.ProdEvaluateREQ;
import cn.s1995.sloth.bizs.oo.vo.ProdEvaluateVO;
import cn.s1995.sloth.common.core.util.R;
import jakarta.validation.Valid;

public interface ProdEvaluateService extends IService<ProdEvaluate> {

	/**
	 * 获取
	 * @param id
	 * @return
	 */
	ProdEvaluateVO getProdData(Long prodId);

	/**
	 * 新增/修改评价
	 * @param req
	 * @return
	 */
	R saveProdEvaluate(ProdEvaluateREQ req);


	/**
	 * 评价订单
	 * @param req
	 * @return
	 */
	R addBatch(@Valid OrderEvaluateREQ req);

}
